package cn.yunhe.dao;

import cn.yunhe.model.House;
import cn.yunhe.util.Pagination;

import java.util.List;
import java.util.Map;

public interface HouseDao {

    boolean insertHouse(House house);
    boolean updateHouse(House house);
    boolean deleteHouse(Integer hid);

    House getById(Integer hid);
    List<House>searchHouse(String hql);
    List<House>searchHouse(House house);

    List<House> searchHouse(House house, Pagination<House> pagination);
}
